package com.edu.gcu.system.dao;

import com.edu.gcu.system.pojo.Admin;
import org.apache.ibatis.annotations.Param;

public interface AdminMapper {
    int deleteByPrimaryKey(String id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    int checkUsername(String username);

    Admin checkUser(@Param("username") String username, @Param("password") String password, @Param("name") String name);

    int updateByUsername(@Param("username") String username, @Param("password") String password);
}